// 
import httpUtils from "@/core/utils/http.utils";
const urls = {
    'page': `/api/fxxt/exp/page`,
    'add': `/api/fxxt/exp/add`,//添加实验
    'dataPage': `/api/fxxt/datares/page`,//数据资源
    'hardPage': `/api/fxxt/hardwareres/page`,//硬件资源
    'modelPage': `/api/fxxt/modelres/page`,//模型资源,
    'experType': '/api/upms/sysDictItem/getDItemByDType/discoverSynergy_exper_type',//模型资源,
    'checkType': '/api/upms/sysDictItem/getDItemByDType/exper_state',//实验审核--实验类型,
    'check': `/api/fxxt/exp/check`,//模型资源,
    'textCheck':'/api/fxxt/exp/check',// 实验审核
    'textChecks':'/api/fxxt/exp/checks',// 批量实验审核
    'testDetail':`/api/fxxt/exp/` ,// 实验详情
    'selectResource':'/api/fxxt/exp/selectResource/', // 资源详情
    'rushApproval': '/api/fxxt/urge/page/', //催批
    'getRushAppInfo':'/api/fxxt/exp/urge/', // 根据id获取催批信息
    'getRoleName': '/api/sjhj/exp/getrolename/',       // 获取角色名
    'resultApl': '/api/upms/sysDictItem/getDItemByDType/result_apl', // 结果提交方式,
    
};
// service methods
const experApi = {
    ///课程难度
    getPage(params) {
        return httpUtils.get(urls.page, params);
    },
    add(params) {
        return httpUtils.postRequest(urls.add, params);
    },
    dataPage(params) {
        return httpUtils.get(urls.dataPage, params);
    },
    hardPage(params) {
        return httpUtils.get(urls.hardPage, params);
    }, 
    modelPage(params) {
        return httpUtils.get(urls.modelPage, params);
    },
    experType(params) {
        return httpUtils.get(urls.experType, params);
    },
    checkType(params) {
        return httpUtils.get(urls.checkType, params);
    },
    check(params) {
        return httpUtils.get(urls.check, params)
    },
    textCheck(params) {
        return httpUtils.post(urls.textCheck, params);
    },
    textChecks(params) {
        return httpUtils.post(urls.textChecks, params);
    },
    testDetail(params) {
        return httpUtils.get(urls.testDetail + params);
    },
    selectResource(params) {
        return httpUtils.get(urls.selectResource, params);
    },
    rushApproval(params) {
        return httpUtils.get(urls.rushApproval + params);
    },
    getRushAppInfo(params) {
        return httpUtils.post(urls.getRushAppInfo + params);
    },
    getRoleName(param) {
        return httpUtils.get(urls.getRoleName + param);
    },
    resultApl(params) {
        return httpUtils.get(urls.resultApl, params);
    },
}


export default experApi;
